package com.aaa.sys.service;

import com.aaa.sys.entity.User;
import com.aaa.sys.util.ActivierUser;
import com.aaa.sys.vo.LoginVO;
import com.aaa.sys.vo.UserPosition;
import com.aaa.sys.vo.UserSearch;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 管理员表 服务类
 * </p>
 *
 * @author ykq
 * @since 2020-11-25
 */
public interface UserService extends IService<User> {


    ActivierUser queryUserByUserName(LoginVO loginVO);

    IPage<UserPosition> selectByPageCon(Integer current, Integer limit, UserSearch userSearch);

    void saveUser(UserPosition userPosition);

    UserPosition getUserPosById(Long userId);

    void updateUser(UserPosition userPosition);

    void fenUserRole(Long userId, List<Long> roleIds);
}
